package com.astar.service.impl;

import com.astar.entity.UserRole;
import com.astar.mapper.UserRoleMapper;
import com.astar.service.IUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 用户和角色关联表 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2020-01-17
 */
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements IUserRoleService {


    @Autowired
    private UserRoleMapper userRoleMapper;

    @Override
    public int deleteRole(UserRole userRole) {
        return userRoleMapper.deleteRole(userRole);
    }

    @Override
    public int insertUserRole(UserRole userRole) {
        return userRoleMapper.insertUserRole(userRole);
    }
}
